﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using cecb.Methodes;
 
namespace cecbcodeplex
{
    /// <summary>
    /// Interaction logic for Frm_SystemSettings.xaml
    /// </summary>
    public partial class Frm_SystemSettings : Window
    {
        public Frm_SystemSettings()
        {
            InitializeComponent();

        }

        private void btnLogin_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if (cecb.Methodes.SystemSettings.ValidateSettingsLogin(tbxPassword.Text)) {
                grdLogin.Visibility = System.Windows.Visibility.Hidden;
                MessageBox.Show("Successfully loged system adminstratoer!","Message:",MessageBoxButton.OK,MessageBoxImage.Hand);
            }
            else MessageBox.Show("Erro!!!!", "Message:", MessageBoxButton.OK, MessageBoxImage.Warning);
            
            
        }

        private void btnLogin_Click(object sender, RoutedEventArgs e)
        {

        }
    }
}
